﻿using Caliburn.Micro;

using TheKitchen.Client.Services;

namespace TheKitchen.Client.ViewModels
{
    public class ShellViewModel : PropertyChangedBase, IBusyService
    {
        private bool isBusy;
        public bool IsBusy
        {
            get { return isBusy; }
            private set
            {
                isBusy = value;
                NotifyOfPropertyChange(() => IsBusy);
            }
        }

        public void MarkAsBusy()
        {
            IsBusy = true;
        }

        public void UnmarkAsBusy()
        {
            IsBusy = false;
        }
    }
}